how to write test case manually